// @Author EthanScriptOn
// @Desc
package pojo

import "time"

type SrfSwitchPublishLog struct {
	Id         int64     `xorm:"bigint autoincr pk" json:"id" comment:"主键"`
	SwitchName string    `xorm:"varchar(255) notnull" json:"switch_name" comment:"开关名称"`
	CreatedAt  time.Time `xorm:"created" json:"created_at" comment:"创建时间"`
	OptionId   int64     `xorm:"bigint notnull" json:"option_id" comment:"操作记录ID"`
	Env        string    `xorm:"varchar(30) notnull" json:"env" comment:"环境"`
	Group      string    `xorm:"varchar(30) notnull" json:"group" comment:"组"`
	Namespace  string    `xorm:"varchar(30) notnull" json:"namespace" comment:"命名空间"`
}

func (SrfSwitchPublishLog) TableName() string {
	return "srf_switch_publish_log"
}

type SrfSwitchPublishLogGroup struct {
	SrfSwitchPublishLog SrfSwitchPublishLog `xorm:"extends"`
	SrfSwitchOptionLog  SrfSwitchOptionLog  `xorm:"extends"`
}
